/*****************************************************************************
 * Copyright (c) 2017 Cedric Dumoulin.
 * 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Cedric Dumoulin - Initial API and implementation
 *   
 *****************************************************************************/

package org.eclipse.papyrus.infra.core.sasheditor.contentprovider.simple;

/**
 * A {@link TabFolderModel} with a name.
 * Useful for tests : it allows to manipulate Folders by their names.
 * 
 * @author cedric dumoulin
 *
 */
public class TabFolderModelWithName extends TabFolderModel {

	private String name;
	
	/**
	 * Constructor.
	 *
	 * @param contentProvider
	 */
	public TabFolderModelWithName(SimpleSashWindowsContentProvider contentProvider, String name) {
		super(contentProvider);
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
